package org.starsource.forum.shared.util;

public class ImageTypeHelper {
	public static boolean isImage(String fileName) {
		String name = fileName.toLowerCase();
		if (	name.endsWith(".jpg") ||
				name.endsWith(".png") ||
				name.endsWith(".bmp") ||
				name.endsWith(".gif") ||
				name.endsWith(".jpeg") ||
				name.endsWith(".jpe") ||
				name.endsWith(".tif") ||
				name.endsWith(".ico")) {
			return true;
		}
		return false;
	}
}
